import request from '@/utils/request'

// 查询异动记录列表
export function listAbnormalaction(query) {
  return request({
    url: '/stock/abnormalaction/list',
    method: 'get',
    params: query
  })
}

// 查询异动记录详细
export function getAbnormalaction(abnormalactionId) {
  return request({
    url: '/stock/abnormalaction/' + abnormalactionId,
    method: 'get'
  })
}

// 新增异动记录
export function addAbnormalaction(data) {
  return request({
    url: '/stock/abnormalaction',
    method: 'post',
    data: data
  })
}

// 修改异动记录
export function updateAbnormalaction(data) {
  return request({
    url: '/stock/abnormalaction',
    method: 'put',
    data: data
  })
}

// 删除异动记录
export function delAbnormalaction(abnormalactionId) {
  return request({
    url: '/stock/abnormalaction/' + abnormalactionId,
    method: 'delete'
  })
}
